/*
 * FileName：MsgRecord.java 
 * <p>
 * Copyright (c) 2017-2020 <a href="https://www.smartwx.info">hermit(1154808491@qq.com)</a>.
 * <p>
 * Licensed under the GNU General Public License, Version 3 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * <p>
 * http://www.gnu.org/licenses/gpl-3.0.html
 * <p>
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * 
 */
package com.smart.wx.wxcms.entity;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.smart.common.page.Page;
import lombok.Data;

/**
 * 
 *
 * @author hermit
 * @version 2.0
 * @date 2018-07-23 23:03:23
 */
@Data
public class MsgRecord extends Page implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 主键
	 */
	private Integer id;
	/**
	 * 群发的消息id
	 */
	private String msgId;
	/**
	 * 消息类型
	 */
	private String msgType;
	/**
	 * 对应的素材id
	 */
	private String mediaId;
	/**
	 * 消息的数据ID，，该字段只有在群发图文消息时，才会出现。
	 */
	private String msgDataId;
	/**
	 * 文本消息内容，只有是文本的时候才会存在此数据
	 */
	private String content;
	/**
	 * 群发是否成功，默认是1成功
	 */
	private Integer msgStatus;
	/**
	 * 删除状态 默认是0未删除。群发记录数据不允许删除，只能标识删除状态
	 */
	private Integer delStatus;
	/**
	 * 公众号
	 */
	private String account;
	/**
	 * 操作者
	 */
	private String userId;
	/**
	 * 消息创建时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date createTime;
}
